package cn.zucc.edu.handyzucc.dao;

import cn.zucc.edu.handyzucc.entity.PostCmt;
import cn.zucc.edu.handyzucc.entity.ShopCmt;

import java.util.List;

public interface CommentDao {
    List<PostCmt> getPostCommentsByPost(Integer postcmt_post);
    List<PostCmt> getPostCommentsByAuthor(Integer postcmt_author);
    int addPostComment(PostCmt postCmt);
    int deletePostComment(Integer postcmt_id);
    int deletePostAllComment(Integer postcmt_post);

    List<ShopCmt> getShopCommentsByShop(Integer shopcmt_shop);
    ShopCmt getShopCommentsDetail(Integer shopcmt_id);
    int addShopComment(ShopCmt shopCmt);
    int deleteShopComment(Integer shopcmt_id);
    int deleteShopAllComment(Integer shopcmt_shop);
}
